package HomeWork;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class Demo01 {
    public static void main(String[] args) {
        List<Integer> list=new ArrayList<>();
        Random random=new Random();
        for(int i=0;i<10;i++){
            list.add(random.nextInt(100,201));
        }

        list.forEach(i-> System.out.print(i+" "));
        System.out.println();
        list.remove(2);
        list.remove(5);
        list.remove(6);
        System.out.println(list);
    }
}
